import axios from "../index.js";
// 应急指挥部

// 应急指挥部  编辑 列表
export const yjzhblistpage = (data) => {
  return axios.request({
    url: "/emergency/emergencyCommand/listPage",
    method: "post",
    data: data
  });
};
// 应急指挥部 列表删除
export const deletelist = (data) => {
  return axios.request({
    url: "/emergency/emergencyCommand/deleteById",
    method: "post",
    data: data
  });
};
// 应急指挥部  编辑 列表 保存
export const yjzhbSave = (data) => {
  return axios.request({
    url: "/emergency/emergencyCommand/save",
    method: "post",
    data: data
  });
};
// 应急指挥部  编辑 列表 修改
export const yjzhbedit = (data) => {
  return axios.request({
    url: "/emergency/emergencyCommand/updById",
    method: "post",
    data: data
  });
};
// 应急指挥部  应急指挥部模板 条件查询
export const TemplateQuery = (data) => {
  return axios.request({
    url: "/emergency/commandTemplate/listAll",
    method: "post",
    data: data
  });
};
// export const TemplateQuery = (data) => {
//   return axios.request({
//     url: "/emergency/commandTemplate/listPage",
//     method: "post",
//     data: data
//   })
// }
// 应急指挥部  测试用户 详情
export const TestUserinfo = (data) => {
  return axios.request({
    url: "/emergency/testUser/getById",
    method: "get",
    data: data
  });
};
// 应急指挥部  工作分组 详情
export const Workinggroupsinfo = (data) => {
  return axios.request({
    url: "/emergency/commandGroup/getById",
    method: "get",
    data: data
  });
};

// 应急指挥部  响应命令单-已发布命令单数据接口
export const selectResponse = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/selectResponse",
    method: "get",
    data: data
  });
};
export const selectResponseList = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/selectRelevanceCommand",
    method: "get",
    data: data
  });
};

// 应急指挥部  测试用户 详情
export const TestUserOption = (data) => {
  return axios.request({
    url: "/system/account/getAccountRoleOrgList",
    // url: "/emergency/testUser/listAll",
    // method: "get",
    method: "post",
    data: data
  });
};

// 应急指挥部  详情接口
export const getDetailById = (data) => {
  return axios.request({
    url: "/emergency/emergencyCommand/getById",
    method: "get",
    data: data
  });
};
// 应急指挥部  响应命令单详情
export const responseDetail = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/getById",
    method: "get",
    data: data
  });
};

// 应急指挥部  查看详情
export const viewDetail = (data) => {
  return axios.request({
    url: "/emergency/emergencyCommand/view",
    method: "get",
    data: data
  });
};

// 应急指挥部  详情保存
export const detailSave = (data) => {
  return axios.request({
    url: "/emergency/emergencyCommand/saveOrUpdate",
    method: "post",
    data: data
  });
};

// 应急指挥部  详情提交
export const detailSubmit = (data) => {
  return axios.request({
    url: "/emergency/emergencyCommand/submit",
    method: "post",
    data: data
  });
};

// 应急指挥部  详情审批
export const detailApproval = (data) => {
  return axios.request({
    url: "/emergency/emergencyCommand/approval",
    method: "post",
    data: data
  });
};

// 应急指挥部  首页详情
export const indexDetail = (data) => {
  return axios.request({
    url: "/emergency/emergencyCommand/index",
    method: "get",
    data: data
  });
};

// 应急指挥部模板条件查询
export const commandTemplate = (data) => {
  return axios.request({
    url: "/emergency/commandTemplate/listAll",
    method: "post",
    data: data
  });
};

// 模板获取详情
export const commandTemplateDetail = (data) => {
  return axios.request({
    url: "/emergency/commandTemplate/getById",
    method: "get",
    data: data
  });
};
